import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/feeContractGift/addOrSave',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/feeContractGift/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/feeContractGift/addOrSave',
    method: 'post',
    data
  })
}

export function exportDe(data) {
  return request({
    url: 'api/feeContractGift/export',
    method: 'post',
    data
  })
}

export function importDe(data) {
  return request({
    url: 'api/feeContractGift/import',
    method: 'post',
    data
  })
}

export function getGiftGoodsCount(params) {
  return request({
    url: 'api/feeContractGift/getGiftGoodsCount',
    method: 'get',
    params
  })
}

export function selectFeeContractGiftGoods(params) {
  return request({
    url: 'api/feeContractGift/selectFeeContractGiftGoods',
    method: 'get',
    params
  })
}

export function addGiftGoods(data) {
  return request({
    url: 'api/feeContractGift/addGiftGoods',
    method: 'post',
    data
  })
}

export function getFeeContractGiftReachItem(params) {
  return request({
    url: 'api/feeContractGift/getFeeContractGiftReachItem',
    method: 'get',
    params
  })
}

export default {
  add,
  edit,
  exportDe,
  importDe,
  del,
  getGiftGoodsCount,
  selectFeeContractGiftGoods,
  addGiftGoods,
  getFeeContractGiftReachItem
}
